import { createApp } from 'vue'
import 'virtual:windi.css'
import 'virtual:svg-icons-register'
import App from './App.vue'
import router from './router'
import pinia from './store'
import i18n from './locales'
import '@/assets/css/reset.css'
//重点 样式必须要加
import 'element-plus/dist/index.css'
const app = createApp(App)
// 配置路由
app.use(router)
// 配置pinia
app.use(pinia)
// 配置国际化
app.use(i18n)
app.mount('#app').$nextTick(() => {
  // Use contextBridge
  window.ipcRenderer.on('main-process-message', (_event, message) => {
    console.log(message)
  })
})
